package test.okio

import okio.*
import okio.Path.Companion.toPath
import org.junit.jupiter.api.Test
class OkIOTest {

    @Test
    fun `write a text`() {
        FileSystem.SYSTEM.write("README.txt".toPath()) {
            writeUtf8("你好 okio")
        }
    }

    @Test
    fun `read a text`() {
        val readmeContent = FileSystem.SYSTEM.read("README.md".toPath()) {
            readUtf8()
        }
        println(readmeContent)
    }

}